config: allow minimum PD len up to 64
authorDavid Härdeman <[email protected]>
Sun, 14 Dec 2025 12:04:56 +0000 (13:04 +0100)
committerÁlvaro Fernández Rojas <[email protected]>
Sun, 14 Dec 2025 19:34:45 +0000 (20:34 +0100)
commit62113d007a6a18668cdcbb52811a1b79630f5848
treed12c0f65cbfe25a82ad0819934367e1807c92f33
parent03c1468355c0ffb8fa965cdf57f0d3fc8f01f006
config: allow minimum PD len up to 64

The current limit of [1,62] doesn't really seem to be justified. With
things like RFC9762 (DHCPv6-PD preferred), it isn't unlikely that we'll
see more DHCPv6-PD requests in the future, and not just from actual
routers.

The smallest realistic PD that can be allocated is a /64, so make that
the minimum.

Also, fix a bug in the logic (note that the PD_MIN_LEN_MAX actually
isn't enforced).

Closes: #352
Signed-off-by: David Härdeman <[email protected]>
Link: https://github.com/openwrt/odhcpd/pull/357
Signed-off-by: Álvaro Fernández Rojas <[email protected]>
README.md
src/config.c